<template>
  <div class="about">
    <h1>This is an about page</h1>
    <mt-popup v-model="popupVisible" position="right">
      <test @close="sayhi" :p-popup-visible="popupVisible"></test>
    </mt-popup>
  </div>
</template>

<script>

import { Popup } from 'mint-ui'
import Test from "../components/test/Test";

export default{
  name:'About',
  data () {
    return {
      popupVisible: true
    }
  },
  components:{
     'mt-popup': Popup,
     'test': Test
  },
  methods:{
    sayhi(b){
      console.log(this.popupVisible)
      this.popupVisible = b
      console.log(this.popupVisible)
      // console.log(Test.data().name);
      // 参数列表有子组件决定
      // console.log(arguments)
      // console.log(num)
    }
  }
}
</script>

<style scoped>
  .about{
    width: 100%;
    height: 100%;
  }
  .mint-popup{
    width: 80%;
    height: 100%;
  }
</style>